PtTcl: Using Tcl with Pthreads

نویسنده

  • D. Richard Hipp
چکیده

Tcl is not thread-safe. If two or more threads attempt to use Tcl at the same time, internal data structures can be corrupted and the program can crash. This is true even if the threads are using separate Tcl interpreters. PtTcl is a modi cation to the Tcl core that makes Tcl safe to use with POSIX threads. With PtTcl, each thread can create and use its own Tcl interpreters that will not interfere with interpreters used in other threads. A message-passing mechanism allows Tcl interpreters running in di erent treads to communicate. However, even with PtTcl, the same interpreter still cannot be accessed by more than one thread. This paper describes the design, implementation and use of PtTcl.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Callus Induction and Shoot Regeneration Using Indole Acetic Acid and N-Isopentenylamino Purine Combinations and Two Types of Explant in Tomato

Effects of different concentrations of IAA (0, 0.3, 0.6 mg/l) and 2ip (0, 0.3, 0.6, 0.9, 1.2 mg/l) and their combinations on callus induction and shoot regeneration of hypocotyl and its thin cell layer (TCL) explants in tomato was studied. Explants were prepared from hypocotyls of seedlings in the aseptic condition. Hypocotyl segments were more efficient than TCL explants for callus induction a...

متن کامل

Parallel Homologous Search with Hirschberg Algorithm: A Hybrid MPI-Pthreads Solution

In this paper, we apply two different parallel programming model, the message passing model using Message Passing Interface (MPI) and the multithreaded model using Pthreads, to protein sequence homologous search. The protein sequence homologous search uses Hirschberg algorithm for the pair-wise sequence alignment. The performance of the homologous search using the MPI-Pthread is compared to the...

متن کامل

Application of Fortran Pthreads to Linear Algebra and Scientific Computing

Pthreads is a POSIX standard library for expressing concurrency on uniprocessor and symmetric multiprocessor computers. Typical multithreaded applications include database manipulation, operating systems, or any algorithm displaying task-level concurrency. These types of programs are generally coded in C. Hence, the POSIX standard only defines a C interface to Pthreads. The lack of a standard F...

متن کامل

Mitigation Transformer Inrush Current Using Modified Transient Current Limiter

This study presents a modified transient current limiter (MTCL) for mitigation the inrush current of transformers. The MTCL is based on conventional transient current limiter (TCL), which, its configuration is modified to overcome the TCL drawbacks of operation. The proposed MTCL offers lower power losses and voltage/current THD during normal operation mode. It needs only one limiting reactor i...

متن کامل

Using Pthreads in Fortran

This article describes the way to use pthreads library in Fortran programs. With most of the modern day processors having more and more built in capability of parallelism, there is ample need of utilizing this power at the application level, especially in scientific applications which involves lots of number crunching and multi GB disk handling. To utilize the power of multi threading for scien...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1997